<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<a href="1.html" target="_blank">转到1</a>
<button onclick="openWindow()">打开新窗口</button>
<script>
    sessionStorage.setItem("aaa","bbbbb");
    console.log(sessionStorage.getItem("aaa"))
    function openWindow() {
        let c = window.open("1.html","1Page","width=1000,height=500,menubar=yes,location=yes,resizable=yes,scrollbars=true,status=true");
    }
</script>
</body>
</html>